import request from '@/utils/request';

/** 密码登录 */
export const passwordLoginApi = (data) => request.post('/api/admin/login', data);
/** 手机短信验证码登录 */
export const loginBySmsCodeApi = (data) => request.post('/api/admin/login/mobile', data);
/** 登录状态 */
export const loginStateApi = () => request.get('/api/admin/login/state');
